﻿#ifndef __SS_TEXTURE_MATERIAL_H__
#define __SS_TEXTURE_MATERIAL_H__
#include "ssMaterial.h"
#include "../../texture/ssTexture2D.h"
#include "container/ssArray.h"


namespace StarSeeker
{

class ssTextureMaterial : public ssMaterial
{
public:
	ssTextureMaterial();
	~ssTextureMaterial();

	//设置纹理,返回之前的文理对象
	ssTexture2D* SetTexture(ssTexture2D* pt);
	//绑定着色器参数，如果SetTexture后有纹理对象有变化需要调用本函数
	virtual void BindTexture2DShaderUniform();

protected:
	void OnRenderBegin();
	void OnRenderEnd();

protected:
	ssTexture2D	*				m_pTexture;			//纹理对象
	ssArray<ssShaderUniform>	m_shaderTexture;	//纹理着色器参数
};

}
#endif
